<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:t="http://myfaces.apache.org/tomahawk">
<h:head>
	<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8" />
	<meta http-equiv="IMAGETOOLBAR" content="false" />
	<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
	<meta http-equiv="PRAGMA" content="NO-CACHE" />
	<meta http-equiv="X-UA-Compatible" content="IE=9" />
	<title>Administrator</title>
</h:head>
<h:body>
	<f:view>
		<h:form id="uploadForm" enctype="multipart/form-data">
			<h:inputText value="Item"></h:inputText>
			<t:inputFileUpload value="#{uploadBean.uploadedFile}" />
			<h:commandButton value="submit" action="#{uploadBean.uploadFile}" />
		</h:form>
		
		<h:form id="form2" enctype="multipart/form-data">
			<rich:fileUpload fileUploadListener="#{uploadBean.listener}"
                id="upload" acceptedTypes="jpg, gif, png, bmp" maxFilesQuantity="1">
                <a4j:ajax event="uploadcomplete" execute="@none" render="info" />
            </rich:fileUpload>
		</h:form>
	</f:view>
</h:body>
</html>